<%@ page import="com.goodedeeds.webapp.controller.VerifyEmailAction" %>
<%@ page import="com.goodedeeds.webapp.controller.LoginAction" %>
<%--
  Created by IntelliJ IDEA.
  User: ravi
  Date: 8/13/12
  Time: 10:38 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--@elvariable id="actionBean" type="com.depo.quiggle.view.controller.VerifyEmailAction"--%>
<%@ include file="/WEB-INF/jsp/include/taglibs.jsp" %>
<div class="quiggle-content">

    <c:choose>
        <c:when test="${actionBean.unlocked}">
            Thank you for verifying. Your account has been unlocked. Go to <stripes:link href="<%=LoginAction.URL%>">Login</stripes:link> page and login with your user name and password.
        </c:when>
        <c:otherwise>
            <stripes:form action="<%=VerifyEmailAction.URL%>">
                <stripes:errors/>
                <div class="table unlock-email-table">
                    <div class="tr"><div class="td h3">Unlock your Email</div></div>
                    <div class="tr"><label class="td">Email:</label><div class="td"><stripes:text name="email"/></div></div>
                    <div class="tr"><label class="td">Unlock Code:</label><div class="td"><stripes:text name="unlockCode"/></div></div>
                    <div class="tr"><div class="td"><stripes:submit name="submit" value="Unlock"/></div></div>
                </div>
            </stripes:form>
        </c:otherwise>
    </c:choose>
</div>